﻿function OpenDetailsAndRefresh(url, width, height) {
    retval = window.showModalDialog(url, 'Dialog Arguments Value', 'dialogHeight: ' + height + 'px; dialogWidth: ' + width + 'px; dialogTop: px; dialogLeft: px; edge: Sunken; center: Yes; help: No; resizable: No; status: No;scroll:no;');

    if (retval == 'refresh') {
        // Refresh the current page
        window.navigate(window.location);
    }

    return false;
}